//
// Created by wze-zero on 2024/7/15 015.
//
#include <iostream>

using namespace std;

void swapNum(int &a, int &b) {
    int temp = a;
    a = b;
    b = temp;
}

int main() {
    int m, n;
    cin >> m;
    cin >> n;
    swapNum(m, n);
    cout << m << " " << n << endl;
    return 0;
}